var format=function(obj){
   var  time=new  Date(obj)
   var y=time.getFullYear()
   var m=time.getMonth()+1
   var d=time.getDate()
   return  `${y}-${m}-${d}`
}

module.exports=format